<form class="form-horizontal" action="jsp/admin/user/attribute/DoModifyAttribute.jsp" method="post" >
	<fieldset>
		<legend>#i18n{portal.users.modify_attribute.pageTitleAttributeImage}</legend>
	    <div class="control-group">
	        <label class="control-label" for="title">#i18n{portal.users.modify_attribute.labelTitle} * : </label>
	        <div class="controls">
				<input type="text" name="title" id="title" size="80" value="${attribute.title}"  maxlength="255" />
	        	<span class="help-block">#i18n{portal.users.modify_attribute.labelTitleComment}</span>
	        </div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="help_message"> #i18n{portal.users.modify_attribute.labelHelpMessage} : </label>
	        <div class="controls">
				<textarea  name="help_message" id="help_message"  cols="80" rows="5">${attribute.helpMessage}</textarea>
	        	#i18n{portal.users.modify_attribute.labelHelpMessageComment}
	       	</div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="">#i18n{portal.users.modify_attribute.labelType} : </label>
	        <div class="controls">
				${attribute.attributeType.name}
			</div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="is_shown_in_result_list">#i18n{portal.users.modify_attribute.labelIsShownInResultList} : </label>
	        <div class="controls">
				<#if attribute.shownInResultList = false>
	        		<input name="is_shown_in_result_list" value="1" type="checkbox" />
	        	<#else>
	        		<input name="is_shown_in_result_list" value="1" type="checkbox" checked="checked" />
	        	</#if>
	        </div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="mandatory">#i18n{portal.users.modify_attribute.labelMandatory} : </label>
	        <div class="controls">
				<#if attribute.mandatory = false>
	        		<input name="mandatory" value="1" type="checkbox" />
	        	<#else>
	        		<input name="mandatory" value="1" type="checkbox" checked="checked" />
	        	</#if>
	        </div>
	    </div>	
	    <div class="control-group">
	        <label class="control-label" for="width">#i18n{portal.users.modify_attribute.labelWidth} : </label>
	        <div class="controls">
				<#list attribute_fields_list as attribute_field>
	        		<#if attribute_field.width != -1>
	        			<input type="text" name="width" id="width" size="5" value="${attribute_field.width}" />
	        		<#else>
	        			<input type="text" name="width" id="width" size="5" value="" />
	        		</#if>
	        	</#list>
	        </div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="height">#i18n{portal.users.modify_attribute.labelHeight} : </label>
	        <div class="controls">
				<#list attribute_fields_list as attribute_field>
	        		<#if attribute_field.height != -1>
	        			<input type="text" name="height" id="height" size="5" value="${attribute_field.height}" />
	        		<#else>
	        			<input type="text" name="height" id="height" size="5" value="" />
	        		</#if>
	        	</#list>
	        </div>
	    </div>
	    <div class="form-actions">
	        <input type="hidden" name="id_attribute" value="${attribute.idAttribute}" />
	    	<button class="btn btn-primary btn-small" type="submit" name="validate" value="validate" >
				<i class="icon-ok icon-white">&nbsp;</i>&nbsp;#i18n{portal.users.create_attribute.buttonValidate}
			</button>
			<button class="btn btn-primary btn-small" type="submit" name="apply" value="apply" >
				<i class="icon-ok-circle icon-white">&nbsp;</i>&nbsp;#i18n{portal.users.create_attribute.buttonApply}
			</button>
			<button class="btn btn-small" type="submit" name="cancel" value="cancel" >
				<i class="icon-remove-circle">&nbsp;</i>&nbsp;#i18n{portal.admin.message.buttonCancel}
			</button>
	    </div>
    </fieldset>
</form>
